﻿@model zichan.Models.IpModel
@{
    ViewBag.Title = "part_Ip";
}

<label class="col-md-3 control-label xh">服务器主IP:</label>
<div class="col-md-9">
    @Html.DropDownList("IPId", (SelectList)ViewBag.ipIds, "请选择IP", new { @class = "form-control input-large" })
    <span class="help-block">
        @Html.ValidationMessageFor(o => o.IPId)
    </span>
</div>
<script>
    $(function () {
        $("#IPId").on("change", function () {
            var id = $(this).val();
            $("#Sub_IP").load("/Common/part_SubIp?machineRoomId=" +@ViewBag.mRoomId + "&ipId=" + id);
        });
    });
</script>

